package com.apollow.oschina.base;

import android.app.Application;

import com.apollow.oschina.util.Constants;

import retrofit2.Retrofit;
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;

/**
 * Created by bobo on 2017/1/3.
 */
public class MyApp extends Application {
    public static MyApp sInstance;
    public static Retrofit mRetrofit;
    /*mRetrofit = new Retrofit.Builder().baseUrl(Const.HOST)
    .addConverterFactory(GsonConverterFactory.create()).build();*/
    @Override
    public void onCreate() {
        super.onCreate();
        sInstance=this;
        Global.init(getApplicationContext());
        mRetrofit = new Retrofit.Builder()
                .baseUrl(Constants.HOST)
                .addConverterFactory(SimpleXmlConverterFactory.create())
                .build();

    }
}
